package com.amc.wxSend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * pocAutoConfig对象 poc_auto_config
 * 
 * @author ZhangXX
 * @date 2023-06-12
 */
@Data
@TableName(value = "wx_send_auto_config")
public class WxSendAutoConfig
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 业务类型 */
    private String type;

    /** 自动开关 */
    private String autoEnable;

    /** 所属系统 */
    private String sys;

    /** 描述 */
    private String typeDesc;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("autoEnable", getAutoEnable())
            .append("sys", getSys())
            .append("typeDesc", getTypeDesc())
            .toString();
    }
}
